﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="ShowGORList.aspx.cs" Inherits="SD.UI.ShowGOR" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="PanelGORList" runat="server">
        <div>
            <table width="100%">
                <tr>
                    <td colspan="2">
                        <div>
                            <h1>
                                Government Office Region List
                            </h1>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div id="menu">
                            <p>
                                <asp:LinkButton ID="lbnAll" runat="server" Text="All" OnClick="lbnAll_Click" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbn09" runat="server" OnClick="lbn09_Click" Text="0-9" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnABCDE" runat="server" OnClick="lbnABCDE_Click" Text="A B C D E" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnFGHIJ" runat="server" OnClick="lbnFGHIJ_Click" Text="F G H I J" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnKLMN" runat="server" OnClick="lbnKLMN_Click" Text="K L M N" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnOPQR" runat="server" OnClick="lbnOPQR_Click" Text="O P Q R" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnSTUV" runat="server" OnClick="lbnSTUV_Click" Text="S T U V" />
                            </p>
                            |<p>
                                <asp:LinkButton ID="lbnWXYZ" runat="server" OnClick="lbnWXYZ_Click" Text="W X Y Z" />
                            </p>
                        </div>
                    </td>
                    <td>
                        <div style="float: right">
                            <asp:CheckBox ID="chkInActive" runat="server" Text="Include In-Active" Checked="false"
                                OnCheckedChanged="chkInActive_CheckedChanged" AutoPostBack="True" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <div>
                            <asp:GridView ID="gvTrustRegionList" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                AllowSorting="True" OnPageIndexChanging="gvOrganizationList_PageIndexChanging"
                                OnSorting="gvOrganizationList_Sorting" PageSize="15" DataKeyNames="OrgId" OnSelectedIndexChanged="gvOrganizationList_SelectedIndexChanged"
                                EmptyDataText="Don't have data in system." Width="100%" CellPadding="3" BackColor="White"
                                BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CssClass="Org">
                                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                <EmptyDataRowStyle BorderStyle="None" Wrap="False" />
                                <Columns>
                                    <asp:BoundField DataField="GovernmentOfficeRegionId" Visible="False" />
                                    <asp:TemplateField HeaderText="Govt Office Region Name" SortExpression="Name">
                                        <ItemTemplate>
                                            <a href="#" onclick="onGORClick(this);">
                                                <%#DataBinder.Eval(Container.DataItem,"Name") %></a>
                                            <asp:HiddenField ID="hdregId" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"GovernmentOfficeRegionId") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                                    <asp:BoundField HeaderText="County" DataField="County" SortExpression="County" />
                                    <asp:BoundField HeaderText="Is Active?" DataField="IsActive" SortExpression="IsActive" />
                                </Columns>
                                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                <AlternatingRowStyle BackColor="#F7F7F7" />
                            </asp:GridView>
                            <br />
                            <asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
</asp:Content>
